# frozen_string_literal: true

class CreateVariableTypes < ActiveRecord::Migration[6.0]
  def change
    create_table :variable_types do |t|
      t.string  :name,    null: false,  limit: 64
      t.string  :klass,   null: false,  limit: 64
      t.string  :status,  null: false,  limit: 32
      t.timestamps        null: false
    end

    add_index :variable_types, :name, unique: true
  end
end
